﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.ProjectOpenGXDW
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt.ProjectOpenGXDW;

    public class ProjectGXDWOpenConfig_map : EntityMapping<ProjectGXDWOpenConfig>
    {
        public ProjectGXDWOpenConfig_map()
        {
            Property(x => x.DefaultValue1, map =>
            {
                map.Length(500);
            });
            Property(x => x.DefaultValue2, map =>
            {
                map.Length(500);
            });
            Property(x => x.DefaultValue3, map =>
            {
                map.Length(500);
            });
            Property(x => x.DefaultValue4, map =>
            {
                map.Length(500);
            });
            Property(x => x.ValueLimit, map =>
            {
                map.Length(500);
            });

            ManyToOne(x => x.Project, map =>
            {
                map.Column("ProjectId");
            });
        }
    }
}
